/**
 * @Author：ming
 * @Date：2023/10/2 8:30 PM
 * @Filename：Hj3
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.TreeSet;

/**
 * @author ming
 */
public class Hj3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str=br.readLine())!=null){
            TreeSet<Integer> set = new TreeSet<>();
            int n = Integer.valueOf(str);
            for (int i = 0; i < n; i++) {
                int temp = Integer.valueOf(br.readLine());
                set.add(temp);
            }
            for (Integer i : set) {
                System.out.println(i);
            }

        }
    }
}
